﻿using System;

namespace RecaptchaMvc {
	public class RecaptchaModelState : IRecaptchaModelState {
		public RecaptchaModelState(string publicKey) : this(publicKey, null) {}
		public RecaptchaModelState(string publicKey, string errorCode) {
			if(string.IsNullOrEmpty(publicKey))
				throw new ArgumentNullException("publicKey");
			this.PublicKey = publicKey;
			this.ErrorCode = errorCode;
		}

		public string ErrorCode { get; set; }
		public string PublicKey { get; set; }
	}
}